package com.alinesno.cloud.compoment.generate.demo;

import com.alinesno.cloud.compoment.generate.Generator;

/**
 * 生成代码
 * 
 * @author luodong
 *
 */
public class GeneratorTest extends Generator {

	@Override
	public void initTableName() {
	}

	public static void main(String[] args) {
		
		GeneratorTest g = new GeneratorTest();
		g.setOpenFile(true);
		
//		g.tablePrefix = new String[]{ "" } ;
//		g.tableNames = new String[]{""} ;

		g.setSuperRepositoryClassName("com.alinesno.cloud.common.facade.orm.repository.IBaseJpaRepository");
		g.setSuperServiceClassName("com.alinesno.cloud.common.facade.services.IBaseService");
		g.setSuperServiceImplClassName("com.alinesno.cloud.common.core.service.impl.IBaseServiceImpl");
		g.setSuperEntityClassName("com.alinesno.cloud.common.facade.orm.entity.BaseEntity");
		
//		g.setSuperControllerClassName("com.alinesno.cloud.common.web.base.controller.LocalMethodBaseController");  // common-web 工程
		g.setSuperControllerClassName("com.alinesno.cloud.common.web.basic.auth.controller.LocalMethodBaseController");  // basic 工程

		// 启动服务
		g.setArtifactId("alinesno-cloud-devops-manager") ;
		g.parentPackage="com.alinesno.cloud";
		g.generator("devops");
		
	}

}
